<div class="page-container">
<style>
p{line-height:30px;}
.tabBar span.currents {
    background-color: #222;
    color: #fff;
}
</style>
	<p class="f-20 text-success">
		<{$info['order_no']}> [<{$info['title']}>]
	</p><br>
	<div class="panel panel-default">
		<div class="panel-header">计划详情</div>
		<div class="panel-body">
				<div class="row cl">
						<div class="col-xs-12 col-sm-6">
							<p><span>状态：</span><{:c('type.orders_status',$info['status'])}> [<{$info['action_note']}>]</p>
							<p><span>计划编号：</span><{$info['order_no']}></p>
							<p><span>合同编号：</span><{$info['contract_no']}></p>
							<p><span>计划标题：</span><{$info['title']}></p>
							<p><span>计划内容：</span>
							<style>
								#content img{max-width:700px;}
							</style>
							<div id="content" style="overflow:hidden;"><{$info['content']}></div></p>
							<p><span>附件：</span>
							<{:com_format_a(attach($info['attach']))}>
							</p>
							<p>
							<{if $info['status']==3}>
								已完结
							<{else}>
							<a title="审核计划" class="btn btn-primary radius" onclick="c_action(this)" href="javascript:;" _ptitle="审核计划" _width="600" _height="400" _confirm="" _url="<{:url('shenhe/orders','id='.$info['id'])}>" _checkurl="" _post="[]">
								<i class="Hui-iconfont Hui-iconfont-manage"></i>
								审核计划
							</a>
							<{/if}>
							</p>
						</div>
						<div class="col-xs-12 col-sm-6">
							<p><span>是否指定代货：</span><{:c("type.is_zd",$info['is_zd'])}></p>
							<p><span>售价：</span><{:number_format($info['sale_price'],2)}></p>
							<p><span>FOB：</span><{:number_format($info['fob'],2)}></p>
							<p><span>海运价格：</span><{:number_format($info['haiyun'],2)}></p>
							<hr>
							<p>盈亏：</p>
							<p>收款：<span style="color:#5eb95e;"><{:number_format($zshou,2)}></span></p>
							<p>退税：<span style="color:#5eb95e;"><{:number_format($ztui,2)}></span></p>
							<p>直材：<span style="color:#f37b1d;"><{:number_format($zzc,2)}></span></p>
							<p>报销：<span style="color:#f37b1d;"><{:number_format($zbx,2)}></span></p>
							<hr>
							<p>盈亏：<{:number_format($zlr,2)}></p>
						</div>
					</div>
		</div>
	</div>
	<br>
	<br>
	
	<div class="row cl">
		<div class="col-xs-12 col-sm-6">
			<div class="panel panel-default">
				<div class="panel-header">收入</div>
				<div class="panel-body">
				
					<div id="tab_demo1" class="HuiTab">
					  <div class="tabBar cl"><span>收款</span><span>退税</span></div>
					  <div class="tabCon">
					  			<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr>
											<th width="80">ID</th>
											<th>录入人</th>
											<th>收款时间</th>
											<th>币种</th>
											<th>收款金额</th>
											<th>汇率</th>
											<th>人民币</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<{volist name='shou' id='v'}>
										<tr>
											<td><{$v.id}></td>
											<td><{$v.lname}></td>
											<td><{:com_format_time($v.shou_time)}></td>
											<td><{:c("type.inshou_type",$v.type)}></td>
											<td><{:number_format($v.money,2)}></td>
											<td><{$v.rate}></td>
											<td><{:number_format($v.rmb,2)}></td>
											<td><{:c("type.inshou_status",$v.status)}></td>
											<td>
											<{if $v['status']==1}>
												<{:com_page(['ico'=>'shenhe-tongguo','title'=>'审核通过','url'=>url('shenhe/tshou'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea'])}>
												<{:com_page(['ico'=>'shenhe-butongguo2','title'=>'审核驳回','url'=>url('shenhe/bshou'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea'])}>
											<{/if}>
											</td>
										</tr>
										<{/volist}>
									</tbody>
								</table>
					  </div>
					  <div class="tabCon">
					  			<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr>
											<th width="80">ID</th>
											<th>录入人</th>
											<th>退税金额</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<{volist name='tui' id='v'}>
										<tr>
											<td><{$v.id}></td>
											<td><{$v.lname}></td>
											<td><{:number_format($v.rmb,2)}></td>
											<td><{:c("type.intui_status",$v.status)}></td>
											<td>
											<{if $v['status']==0}>
												<{:com_page(['ico'=>'shenhe-tongguo','title'=>'审核通过','url'=>url('shenhe/ttui'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea'])}>
												<{:com_page(['ico'=>'shenhe-butongguo2','title'=>'审核驳回','url'=>url('shenhe/btui'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea'])}>
											<{/if}>
											</td>
										</tr>
										<{/volist}>
									</tbody>
								</table>
					  </div>
					</div>
				
				</div>
			</div>
		</div>
		<div class="col-xs-12 col-sm-6">
			<div class="panel panel-default">
				<div class="panel-header">支出</div>
				<div class="panel-body">
				
					<div id="tab_demo2" class="HuiTab">
					  <div class="tabBar cl"><span>直材</span><span>报销</span></div>
					  <div class="tabCon">
					  			<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr>
											<th width="80">ID</th>
											<th>录入人</th>
											<th>直材名称</th>
											<th>直材数量</th>
											<th>直材金额</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<{volist name='zc' id='v'}>
										<tr>
											<td><{$v.id}></td>
											<td><{$v.lname}></td>
											<td><{$v.title}></td>
											<td><{$v.nums}></td>
											<td><{:number_format($v.rmb,2)}></td>
											<td><{:c("type.outzc_status",$v.status)}></td>
											<td>
											<{if $v['status']==0}>
												<{:com_page(['ico'=>'shenhe-tongguo','title'=>'审核通过','url'=>url('shenhe/tzc'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea'])}>
												<{:com_page(['ico'=>'shenhe-butongguo2','title'=>'审核驳回','url'=>url('shenhe/bzc'), 'post'=>['id'=>$v['id']],'prompt'=>'textarea'])}>
											<{/if}>
											</td>
										</tr>
										<{/volist}>
									</tbody>
								</table>
					  </div>
					  <div class="tabCon">
					  
					  			<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr>
											<th width="80">ID</th>
											<th>录入人</th>
											<th>报销人姓名</th>
											<th>报销科目</th>
											<th>报销金额</th>
											<th>报销内容</th>
										</tr>
									</thead>
									<tbody>
										<{volist name='bx' id='v'}>
										<tr>
											<td><{$v.id}></td>
											<td><{$v.lname}></td>
											<td><{$v.name}></td>
											<td>
											<{php}>$kemu = \app\cdyoa\model\Kemu::lists();echo $kemu[$v['type']];<{/php}>
											</td>
											<td><{:number_format($v.money,2)}></td>
											<td><{:com_substr(strip_tags($v.content),20)}></td>
										</tr>
										<{/volist}>
									</tbody>
								</table>
					  </div>
					</div>
				
				</div>
			</div>
		</div>
	</div>

</div>
<script>
$(function(){
	$.Huitab("#tab_demo1 .tabBar span","#tab_demo1 .tabCon","currents","click","0");
	$.Huitab("#tab_demo2 .tabBar span","#tab_demo2 .tabCon","currents","click","0");
});
</script>